package com.hdoit.ares.logical.tp.zzb.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.tp.zzb.dao.IZzbDataCallbackDao;
import com.hdoit.ares.logical.tp.zzb.model.ZzbDataCallback;
import com.hdoit.ares.logical.viewmodel.tp.zzp.ZzbDataCallbackSearch;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.enums.OrderEnum;
import com.tennetcn.common.message.PagerModel;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      chenghuan
 * @email       
 * @createtime  2017年10月26日 15:10:15
 * @comment
 */
@Component
public class ZzbDataCallbackDaoImpl extends SuperDao<ZzbDataCallback> implements IZzbDataCallbackDao{
	
	@Override
	public List<ZzbDataCallback> queryList(ZzbDataCallbackSearch zzbDataCallbackSearch, PagerModel pagerModel) {
		IFinderExpression finderExpression = FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(ZzbDataCallback.class)
						.addOrder("requestDate", OrderEnum.desc);
		
		return queryList(finderExpression, zzbDataCallbackSearch, pagerModel);
	}

}